// 租用公司
const {DataTypes, db } = require("../db");
db.define('tenant', {
id: {type: DataTypes.INTEGER, primaryKey: true, autoIncrement: true,comment:'表自增ID'},
name:{type: DataTypes.STRING(255),comment:''}, 
deliverToken:{type: DataTypes.STRING(128),comment:'配送密钥'}, 
stat:{type: DataTypes.INTEGER,comment:''}, 
ct:{type: DataTypes.STRING(20),comment:''}, 
dt:{type: DataTypes.STRING(20),comment:''}, 
state:{type: DataTypes.STRING(255),comment:'状态  正常|停用'}, 
mobile:{type: DataTypes.STRING(255),comment:''}, 
subject:{type: DataTypes.INTEGER,comment:''}, 
menus:{type: DataTypes.TEXT,comment:''}, 
isDel:{type: DataTypes.INTEGER,comment:''}, 
isCard:{type: DataTypes.INTEGER,comment:'有财务凭证'},

}, {
    tableName: 'tenant',
    timestamps: false,
    comment: '租用公司'
});